package com.ml.mall.bean.req.credit;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 *   @description    :description 
 *   @author         :zxm
 *   @date           :2021/5/19
 *   @version        :1.0
**/
@ApiModel(value = "添加公司余额变动记录")
@Data
public class CreditRecordNewDto {
    @ApiModelProperty(value = "余额变动：1：增 2：减；3:购物使用")
    @NotNull(message = "余额变动类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "变动金额")
    @NotNull(message = "变动金额不能为空")
    private BigDecimal changeMoney = BigDecimal.ZERO;

    @ApiModelProperty(value = "公司自定义id")
    @NotNull(message = "公司自定义id不能为空")
    private Long companyId;

    @ApiModelProperty(value = "后端自用参数")
    private Long changeId;

    @ApiModelProperty(value = "购物使用填充单号")
    private Long oid;
}
